<!--
  Generated template for the OrderPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar text-center color="primary">
    <ion-title>订单</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-refresher (ionRefresh)="doRefresh($event)">
      <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="获取中，请稍后">
        </ion-refresher-content>
  </ion-refresher>
  <ion-segment [(ngModel)]="flag">
    <ion-segment-button value="wjd" (click)="getCusWjOrder()">
      待接单
    </ion-segment-button>
    <ion-segment-button value="yjd" (click)="getCusYjOrder()">
      已接单
    </ion-segment-button>
  </ion-segment>
  <ion-list>
    <ion-item *ngFor="let order of orderlist" detail-push (click)="orderdetail(order.orderid)">
      <span style="color: green" *ngIf="order.status=='1'&&order.star!=null"> {{order.title}}</span>
      <span style="color: brown" *ngIf="order.status=='1'&&order.star==null"> {{order.title}}</span>
      <span *ngIf="order.status=='0'"> {{order.title}}</span>
    </ion-item>
  </ion-list>
</ion-content>
